package org.example.pack3;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class School {


    @Value("nwpu")
    private String name;

    @Value("东大")
    private String Address;


    @Override
    public String toString() {
        return "School{" +
                "name='" + name + '\'' +
                ", Address=" + Address +
                '}';
    }
}


